Php array_push() vs myArray[]
Posted
by DrDro
on Stack Overflow
See other posts from Stack Overflow
or by DrDro
Published on 2010-03-12T09:30:11Z
Indexed on
2010/03/12
9:37 UTC
Read the original article
Hit count: 125
If I understood properly you can add value to an array by using :
$myArray[] = 123;
or
array_push($myArray, 123);
Is one cleaner/faster then the other one ?
© Stack Overflow or respective owner